package com.example.tsproject.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 教师批改作业记录表
 * @TableName teachergradingrecords
 */
@TableName(value ="teachergradingrecords")
@Data
public class Teachergradingrecords implements Serializable {
    /**
     * 
     */
    @TableField(value = "submit_id")
    private Integer submit_id;

    /**
     * 
     */
    @TableField(value = "teacher_id")
    private Integer teacher_id;

    /**
     * 
     */
    @TableField(value = "t_status")
    private Object t_status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Teachergradingrecords other = (Teachergradingrecords) that;
        return (this.getSubmit_id() == null ? other.getSubmit_id() == null : this.getSubmit_id().equals(other.getSubmit_id()))
            && (this.getTeacher_id() == null ? other.getTeacher_id() == null : this.getTeacher_id().equals(other.getTeacher_id()))
            && (this.getT_status() == null ? other.getT_status() == null : this.getT_status().equals(other.getT_status()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSubmit_id() == null) ? 0 : getSubmit_id().hashCode());
        result = prime * result + ((getTeacher_id() == null) ? 0 : getTeacher_id().hashCode());
        result = prime * result + ((getT_status() == null) ? 0 : getT_status().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", submit_id=").append(submit_id);
        sb.append(", teacher_id=").append(teacher_id);
        sb.append(", t_status=").append(t_status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}